.ant-table-body {
  overflow-y: overlay !important;

  &::-webkit-scrollbar {
    // width: 4px;
    background: transparent;
    height: 10px;
    // height: 30px;
  }
  &::-webkit-scrollbar-thumb {
    border-radius: 5px;
    height: 10px;
    background: rgba(0, 0, 0, 0.1);
  }

  &::-webkit-scrollbar-track {
    background: transparent;
    height: 30px;
  }
}
.api-ant-tabs {
  .ant-tabs-bar {
    margin-bottom: 0;
    .ant-tabs-tab {
      margin: 0 8px;
      padding: 0 16px 4px;
      font-weight: 600;
      font-size: 12px;
      // line-height: 20px;
      height: 32px;
      line-height: 24px;
      color: rgba(15, 34, 67, 0.42);
      &-active,
      &:hover {
        color: #2b79ff;
      }
    }
  }
}
.api-ant-select {
  max-height: 32px;
  &.ant-select-disabled .ant-select-selection:hover {
    background: rgba(15, 34, 67, 0.03);
    box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
  }
  .ant-select-selection {
    background: rgba(15, 34, 67, 0.03);
    box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
    border-radius: 4px 4px 0px 0px;
    border: none;
    color: rgba(15, 34, 67, 0.72);
    font-size: 12px;
    height: 32px;
    &:hover {
      border: none;
      background: rgb(241, 242, 244);
    }
    &.ant-select-selection--multiple {
      min-height: 28px;
      height: 28px;
      .ant-select-selection__rendered {
        height: 28px;
        & > ul {
          height: 28px;
          white-space: nowrap;
          overflow: hidden;
          text-overflow: ellipsis;
          .ant-select-selection__choice {
            height: 20px;
            background-color: white;
            border: 1px solid rgba(15, 34, 67, 0.08);
            box-sizing: border-box;
            border-radius: 16px;
            line-height: 20px;
            font-size: 12px;
            color: rgba(15, 34, 67, 0.72);
            padding: 0 18px 0 12px;
            float: none;
            display: inline-block;
          }
        }
      }
    }
  }
  &.ant-select-open {
    .ant-select-selection {
      background: rgb(233, 235, 238);
      box-shadow: inset 0px -2px 0px rgb(27, 102, 255);
    }
  }
}
.api-select-opration {
  background: #f0f4fc;
  border-radius: 8px;
  font-size: 12px;
  line-height: 20px;
  color: rgba(15, 34, 67, 0.72);
  padding: 4px 8px !important;
  margin: 8px;
  margin-bottom: 0;
  display: inline-block;
  &-icon {
    color: rgba(138, 141, 148, 0.87);
  }
  &-text {
    margin-left: 3px;
  }
}
.api-ant-input {
  .ant-input-group-addon {
    border: none !important;
    border-bottom: 1px solid #d9d9d9 !important;
    border-radius: 4px 0 0 0 !important;
    color: rgba(15, 34, 67, 0.72) !important;
    font-size: 12px !important;
    &:hover {
      border: none;
      background: rgb(241, 242, 244);
    }
    &:focus {
      background: rgb(233, 235, 238);
      box-shadow: inset 0px -2px 0px rgb(27, 102, 255);
    }
  }
  &.ant-input {
    background: rgba(15, 34, 67, 0.03);
    box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
    border-radius: 4px 4px 0px 0px;
    border: none;
    color: rgba(15, 34, 67, 0.72);
    font-size: 12px;
    height: 32px;
    &:hover {
      border: none;
      background: rgb(241, 242, 244);
    }
    &:focus {
      background: rgb(233, 235, 238);
      box-shadow: inset 0px -2px 0px rgb(27, 102, 255);
    }
  }
  .ant-input {
    background: rgba(15, 34, 67, 0.03);
    box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
    border-radius: 4px 4px 0px 0px;
    border: none;
    color: rgba(15, 34, 67, 0.72);
    font-size: 12px;
    height: 28px;
    &:hover {
      border: none;
      background: rgb(241, 242, 244);
    }
    &:focus {
      background: rgb(233, 235, 238);
      box-shadow: inset 0px -2px 0px rgb(27, 102, 255);
    }
  }
}
.api-ant-input-search {
  .ant-input {
    background: rgba(15, 34, 67, 0.03);
    box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
    border-radius: 4px 4px 0px 0px;
    border: none;
    color: rgba(15, 34, 67, 0.72);
    font-size: 12px;
    height: 28px;
    &:hover {
      border: none;
    }
  }
}
.api-ant-datepicker {
  min-width: 0px!important;
  .ant-input {
    background: rgba(15, 34, 67, 0.03);
    box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
    border-radius: 4px 4px 0px 0px;
    border: none;
    color: rgba(15, 34, 67, 0.72);
    font-size: 12px;
    height: 32px;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
    width: calc(100% - 0px);
    padding-right: 25px;
    &:hover {
      border: none;
    }
  }
}
.api-ant-input-number {
  height: 28px;
  width: 100%;
  &:hover,
  &.ant-input-number-focused {
    border: 0;
    outline: 0;
    box-shadow: none;
  }
  &.ant-input-number {
    border: 0;
  }
  .ant-input-number-input {
    background: rgba(15, 34, 67, 0.03);
    box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
    border-radius: 4px 4px 0px 0px;
    border: none;
    color: rgba(15, 34, 67, 0.72);
    font-size: 12px;
    height: 28px;
    &:hover {
      border: none;
    }
  }
}
.api-ant-textarea {
  &.ant-input {
    // background: rgba(15, 34, 67, 0.03);
    background: rgba(0, 38, 166, 0.06);
    box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
    border-radius: 4px 4px 0px 0px;
    border: none;
    color: rgba(15, 34, 67, 0.72);
    font-size: 12px;
    height: 28px;
    &:hover {
      border: none;
      background: rgb(241, 242, 244);
    }
    &:focus {
      background: rgb(233, 235, 238);
      box-shadow: inset 0px -2px 0px rgb(27, 102, 255);
    }
  }
}

.api-ant-collapse {
  margin: 2px;
  .ant-collapse-item {
    box-shadow: 0px 1px 2px rgba(16, 48, 102, 0.06),
      0px 0px 1.5px rgba(16, 48, 102, 0.32);
    margin: 2px;
    // box-shadow: 0px 4px 8px rgba(15, 34, 67, 0.08),
    // 0px 0px 4px rgba(15, 34, 67, 0.08);
    border-radius: 2px;
    margin-bottom: 16px;
    border: 0;
    overflow: hidden;
    .ant-collapse-header {
      font-weight: 600;
      font-size: 12px;
      height: 32px;
      color: rgba(15, 34, 67, 0.34);
      padding: 2px 22px 2px 24px;
      display: flex;
      align-items: center;
      background: rgba(15, 34, 67, 0.03);
      .ant-collapse-arrow {
        left: auto;
        right: 22px;
      }
    }
  }
}

.api-ant-modal {
  background: rgba(189, 190, 191, 0.5);
  .ant-modal {
    .ant-modal-content {
      background: #fcfcfd;
      box-shadow: 0px 0px 20px rgba(21, 61, 128, 0.1),
        0px 32px 60px rgba(21, 61, 128, 0.2);
      border-radius: 8px;
      line-height: 20px;
      .ant-modal-header {
        background: #fcfcfd;
        padding: 14px 24px;
        border-bottom: 0;
        border-radius: 8px;
        .ant-modal-title {
          font-weight: 600;
          font-size: 14px;
          color: rgba(15, 34, 67, 0.72);
        }
      }
      .ant-modal-body {
        padding: 6px 24px 16px;
        font-size: 12px;
        color: rgba(15, 34, 67, 0.72);
      }
      .ant-modal-footer {
        border-top: 0;
        padding: 14px 24px;
        .modal-footer-buttom {
          display: inline-block;
          font-weight: 600;
          font-size: 14px;
          line-height: 20px;
          color: #2b79ff;
          cursor: pointer;
          line-height: 20px;
          padding: 6px 16px;
          border-radius: 4px;
          &:not(:last-child) {
            // margin-right: 40px;
          }
          &:hover {
            background: rgba(86, 98, 118, 0.05);
          }
        }
      }
    }
  }
}
.table-wrapper {
  box-shadow: 0px 8px 64px rgba(188, 200, 223, 0.48),
    0px 0px 1px rgba(188, 200, 223, 0.32);
  padding: 16px;
}

.api-ant-table {
  .ant-table td {
    white-space: nowrap;
    //overflow: hidden!important;
    //text-overflow: ellipsis!important;
  }
  .ant-table-thead > tr > th {
    //border-bottom: none;
    line-height: 1em;
  }
  .ant-table-thead > tr > th,
  .ant-table-tbody > tr > td {
    padding: 0px 8px;
    height: 40px;
    font-size: 16px;
    white-space: normal;
    text-overflow: ellipsis;
    overflow: hidden;
  }
  // .ant-table-tbody > tr > td{
  //   .table-col{
  //     width:100% !important;
  //   }
  //   // div{
  //   //   div{
  //   //     width:100% !important;
  //   //   }
  //   // }
  // }
  .ant-table-thead > tr > th {
    background: rgba(0, 38, 166, 0.1);
    color: rgba(15, 34, 67, 0.34);
    max-height: 18px;
    white-space: nowrap;
    text-overflow: ellipsis;
    overflow: hidden;
    font-weight: bold;
    font-size: 14px;
    line-height: 22px;
    color: rgba(59, 71, 114, 0.7);
  }
  .ant-table-tbody > tr {
    &:not(.ant-table-expanded-row):hover {
      & > td {
        background: rgba(15, 34, 67, 0.03);
        .operation-wrapper {
          visibility: visible;
          //display: inline-flex;
        }
        .text-underline {
          text-decoration: underline;
        }
      }
    }
    & > td {
      border-bottom: 1px solid rgba(86, 98, 118, 0.12);
      cursor: pointer;
      color: rgba(15, 34, 67, 0.72);
      .operation-wrapper {
        //display: none;
        display: inline-flex;
        visibility: visible;
        .operation-item {
          cursor: pointer;
          border-radius: 8px;
          padding: 0px 8px;
          margin: 0 2px;
          font-size: 12px;
          line-height: 32px;
          color: rgba(15, 34, 67, 0.72);
          white-space: nowrap;
          &:hover {
            background: rgba(15, 34, 67, 0.06);
          }
        }
      }
      .table-status {
        .ant-btn-sm {
          height: 22px;
          padding: 0 7px;
          font-size: 12px;
          border-radius: 6px;
        }
        .ant-btn-successApi {
          border: 1px solid #2fcd49;
          color: #2fcd49;
        }
      }
    }
    &.ant-table-expanded-row,
    &.ant-table-expanded-row:hover {
      background: white;
    }
    .api-ant-table-inner {
      background: #eef0f4;
      border-radius: 8px;
      margin: 8px 0;
      padding-bottom: 8px;
      .ant-table-thead > tr > th {
        background: #eef0f4;
        color: rgba(15, 34, 67, 0.34);
        max-height: 18px;
        white-space: nowrap;
        text-overflow: ellipsis;
        overflow: hidden;
      }
    }
  }
  .ant-table-pagination.ant-pagination {
    float: none;
    text-align: center;
    .ant-pagination-total-text {
      float: left;
    }
  }
}
.api-ant-timeline {
  // max-height: 250px;
  overflow-y: scroll;
  .ant-timeline-item-head {
    top: calc(50% - 20px);
  }
  .ant-timeline-item-last > .ant-timeline-item-tail {
    display: block;
  }
  .ant-timeline-item-tail {
    top: -0.25em;
    border-width: 1px;
  }
}

.api-ant-pagination {
  &:not(&.api-ant-table) {
    margin-bottom: 24px;
  }
  .ant-pagination-prev,
  .ant-pagination-next {
    background: #ffffff;
    box-shadow: 0px 0px 2px rgba(16, 48, 102, 0.2),
      0px 4px 8px rgba(16, 48, 102, 0.08);
    border-radius: 4px;
    height: 28px;
    line-height: 28px;
    border: none;
  }

  .ant-pagination-item {
    background: #ffffff;
    line-height: 28px;
    box-shadow: 0px 0px 2px rgba(16, 48, 102, 0.32),
      0px 2px 4px rgba(16, 48, 102, 0.08);
    border-radius: 4px;
    height: 28px;
    border: none;
    a {
      font-family: PingFang SC;
      font-style: normal;
      font-weight: normal;
      font-size: 12px;
      line-height: 20px;
      text-align: center;
      color: rgba(15, 34, 67, 0.42);
    }

    &:hover {
      background: #ffffff;
      box-shadow: 0px 0px 2px rgba(16, 48, 102, 0.24),
        0px 8px 16px rgba(16, 48, 102, 0.16);
      border-radius: 4px;
      a {
        font-family: PingFang SC;
        font-style: normal;
        font-weight: normal;
        font-size: 12px;
        line-height: 20px;
        text-align: center;
        color: rgba(15, 34, 67, 0.72);
      }
    }

    &.ant-pagination-item-active {
      background: rgba(15, 34, 67, 0.1);
      border-radius: 4px;
      border: none;

      a {
        font-family: PingFang SC;
        font-style: normal;
        font-weight: 600;
        font-size: 12px;
        line-height: 20px;
        text-align: center;
        color: rgba(15, 34, 67, 0.87);
      }
    }
  }
  .ant-pagination-options-quick-jumper {
    font-family: PingFang SC;
    font-style: normal;
    font-weight: normal;
    font-size: 12px;
    line-height: 20px;
    color: rgba(10, 18, 33, 0.64);

    input {
      border: none;
      background: rgba(15, 34, 67, 0.03);
      box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
      border-radius: 4px 4px 0px 0px;
    }
  }

  .ant-pagination-options {
    margin-left: 24px;
  }
}

.api-ant-menu {
  .sider-page .sider-header .sider-menus > .sider-submenu .ant-menu-item {
    height: 32px;
  }
  .sider-page .sider-header .sider-menus > .sider-submenu .ant-menu-item {
    margin-top: 0px;
  }
}

.api-ant-transfer.ant-transfer {
  display: flex;
  align-items: center;
  font-size: 12px;
  .ant-transfer-list {
    flex: 1;
    .ant-transfer-list-header {
      display: flex;
      align-items: center;
    }
  }
  .ant-transfer-operation {
    .ant-btn.ant-btn-primary {
      background-color: #fff;
      color: rgba(95, 97, 102, 0.635899);
      width: 32px;
      height: 28px;
      border: none;
    }
    .ant-btn .anticon {
      font-size: 8px;
    }
  }
  .ant-checkbox-inner {
    width: 13px;
    height: 13px;
  }
  .ant-checkbox-checked .ant-checkbox-inner::after {
    // display: none;
  }
  .ant-transfer-list-body-search-wrapper {
    padding: 7px 10px;
  }
  .ant-transfer-list-body-with-search {
    background: #fff;
  }
}
.ant-tooltip {
  padding-top: 3px !important;
  .ant-tooltip-arrow {
    border-width: 0 !important;
  }
  .ant-tooltip-inner {
    background-color: #ffffff !important;
    color: rgba(15, 34, 67, 0.72) !important;
    font-size: 12px !important;
    line-height: 20px !important;
    border-radius: 8px !important;
    box-shadow: 0px 8px 64px rgba(15, 34, 67, 0.12),
      0px 1px 3px rgba(15, 34, 67, 0.06) !important;
    padding: 16px !important;
  }
}

.grammar-tip-wrapper.ant-tooltip {
  max-width: none;
  .ant-tooltip-content {
    .ant-tooltip-inner {
      padding: 0 !important;
    }
  }
}

.toright-tooltip.ant-tooltip .ant-tooltip-inner {
  padding: 0px !important;
  min-width: auto;
  min-height: auto;
}

.api-ant-transfer {
  &.ant-transfer {
    .ant-transfer-list {
      width: 300px;
      height: 400px;
      max-height: 400px;
      overflow: auto;
      border-radius: 4px;
      padding-top: 40px;
      &-header {
        font-weight: 500;
        font-size: 12px;
        line-height: 39px;
        color: rgba(15, 34, 67, 0.48);
        padding-top: 0;
        padding-bottom: 0;
      }
      &-body {
        font-size: 12px;
        color: rgba(15, 34, 67, 0.72);
        .ant-transfer-list-search {
          &.ant-input {
            background: rgba(15, 34, 67, 0.03);
            box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
            border-radius: 4px 4px 0px 0px;
            border: none;
            color: rgba(15, 34, 67, 0.72);
            font-size: 12px;
            height: 28px;
            &:hover {
              border: none;
              background: rgb(241, 242, 244);
            }
            &:focus {
              background: rgb(233, 235, 238);
              box-shadow: inset 0px -2px 0px rgb(27, 102, 255);
            }
          }
          .ant-input {
            background: rgba(15, 34, 67, 0.03);
            box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
            border-radius: 4px 4px 0px 0px;
            border: none;
            color: rgba(15, 34, 67, 0.72);
            font-size: 12px;
            height: 28px;

            &:hover {
              border: none;
              background: rgb(241, 242, 244);
            }

            &:focus {
              background: rgb(233, 235, 238);
              box-shadow: inset 0px -2px 0px rgb(27, 102, 255);
            }
          }
        }
        .ant-transfer-list-content {
          .ant-transfer-list-content-item {
          }
        }
      }
    }
    .ant-transfer-operation {
      margin: 0;
      padding: 8px;
      .ant-btn {
        background-color: #fff;
        color: rgb(163, 163, 167);
        box-shadow: 0px 0px 2px rgba(16, 48, 102, 0.202587),
          0px 4px 8px rgba(16, 48, 102, 0.0796252);
        border-radius: 4px;
        &:not(:last-child) {
          margin-bottom: 8px;
        }
        &[disabled] {
          background-color: rgb(254, 254, 254);
          color: rgb(206, 206, 210);
        }
      }
    }
  }
}

.api-ant-filter-select {
  &.ant-select {
    &.ant-select-focused {
      .ant-select-selection {
        box-shadow: none !important;
      }
    }
    .ant-select-selection {
      border: none;
      white-space: normal;
      text-overflow: ellipsis;
      overflow: hidden;
      background-color: white;
      color: rgba(15, 34, 67, 0.34);
      height: 18px;
      display: flex;
      .ant-select-selection__rendered {
        margin-right: 0px;
        margin-left: 2px;
        line-height: 18px;
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        font-weight: 500;
        text-overflow: ellipsis;
        width: 0;
        .ant-select-selection-selected-value {
          padding-right: 5px;
        }
      }
      .ant-select-arrow {
        position: relative;
        right: auto;
        flex-shrink: 0;
        .ant-select-arrow-icon {
          & > svg {
            width: 8px;
            color: rgba(15, 34, 67, 0.5);
          }
        }
      }
    }
  }
}

.api-ant-dropdown {
  padding: 8px 0;
  .ant-select-dropdown-menu-item {
    color: rgba(15, 34, 67, 0.72);
    &.ant-select-dropdown-menu-item-active {
      background: rgba(15, 34, 67, 0.03);
    }
    &.ant-select-dropdown-menu-item-selected {
      color: #1f71ff;
      background: rgba(43, 121, 255, 0.1);
      font-weight: normal;
    }
  }
}

.api-ant-filter-dropdown {
  box-shadow: none;
  background-color: transparent;
  .ant-select-dropdown-content {
    margin-top: 8px;
    //margin-left: -0px;
    margin-left: -56px;
    background: white;
    width: 80px;
    border-radius: 4px;
    box-shadow: 0px 8px 64px rgba(15, 34, 67, 0.12),
      0px 1px 3px rgba(15, 34, 67, 0.06);
  }
  &-short {
    .ant-select-dropdown-content {
      // margin-left: -45px;
      margin-left: -45px;
    }
  }
  .ant-select-dropdown-menu-item {
    font-size: 12px;
    color: rgba(15, 34, 67, 0.72);
  }
}

.api-table-thead-hasselect {
  position: relative;
  display: flex;
  align-items: center;
  &-label {
    position: absolute;
    left: 0px;
    height: 100%;
    line-height: 20px;
    top: 0px;
    z-index: 123;
    pointer-events: none;
    cursor: pointer;
  }
}

// .api-ant-select.sort-field-select {
//   &.text {
//     .ant-select-selection {
//       &::before {
//         background-image: url(./../assets/images/createDataApi/string.svg);
//       }
//     }
//   }
//   &.number {
//     .ant-select-selection {
//       &::before {
//         background-image: url(./../assets/images/createDataApi/number.svg);
//       }
//     }
//   }
//   &.date {
//     .ant-select-selection {
//       &::before {
//         background-image: url(./../assets/images/createDataApi/date.svg);
//       }
//     }
//   }
//   .ant-select-selection {
//     padding-left: 50px;
//     position: relative;
//     &::before {
//       position: absolute;
//       left: 0px;
//       top: 0px;
//       width: 16px;
//       height: 16px;
//     }
//   }
//   .ant-select-selection {
//     padding-left: 16px !important;
//     position: relative;
//     &::before {
//       content: '';
//       position: absolute;
//       left: 8px;
//       top: calc(50% - 8px);
//       width: 16px;
//       height: 16px;
//     }
//   }
// }
.api-ant-button {
  font-weight: bold;
  margin-right: 8px;
  &:hover {
    background-color: rgba(84, 139, 245, 0.2);
  }
}


.ant-descriptions-bordered .ant-descriptions-item-label {
  white-space: nowrap;
}
.aModal{
  .ant-modal-header {
    border: none !important;
  }
  .ant-modal-footer {
    border: none !important;
  }
}
.api-ant-cascader {
  width: 100%;
  outline: none;
  box-shadow: none;
  background-color: rgba(15, 34, 67, 0.03) !important;
  input {
    font-size: 12px !important;
    border: none !important;
    border-bottom: 1px solid #d9d9d9 !important;
    border-radius: 4px 4px 0px 0px !important;
    box-shadow: inset 0px -1px 0px rgba(95, 97, 102, 0.24);
    background: rgba(15, 34, 67, 0.03) !important;
    outline: none;
  }
}
